package com.wenwei.bean;

import java.io.Serializable;
import java.util.List;

/**
 * Created by nidalee on 2017/9/28.
 */

public class CityBean implements Serializable{


    /**
     * timestamp : 1506584817002
     * code : 200
     * message : data success
     * path : http://localhost:9090/app/getCityAndPark
     * method : GET
     * data : [{"id":1,"name":"成都","longitude":"104.072109","latitude":"30.663513","parkList":[{"id":1,"parkName":"1号停车场","parkNum":"cd0280001","parkAddress":"环球中心第一个地铁口拐进去那儿","cityId":1,"longitude":"104.093781","latitude":"30.621974"},{"id":2,"parkName":"2号停车场","parkNum":"cd0280002","parkAddress":"测试地址","cityId":1,"longitude":"104.103887","latitude":"30.615288"},{"id":3,"parkName":"3号","parkNum":"lsj028001","parkAddress":"测试地址","cityId":1,"longitude":"104.109672","latitude":"30.61549"},{"id":4,"parkName":"春熙路停车场","parkNum":"lsj028002","parkAddress":"春熙路","cityId":1,"longitude":"104.086015","latitude":"30.659566"},{"id":5,"parkName":"桐梓林停车场","parkNum":"bl0280001","parkAddress":"桐梓林","cityId":1,"longitude":"104.073877","latitude":"30.621239"},{"id":6,"parkName":"盐市口停车场","parkNum":"bl0280002","parkAddress":"盐市口","cityId":1,"longitude":"104.073877","latitude":"30.621239"},{"id":8,"parkName":"测试停车场","parkNum":"cs0001","parkAddress":"测试地址","cityId":1,"longitude":"104.071822","latitude":"30.612803"}]},{"id":2,"name":"巴黎","longitude":"3.256.735","latitude":"369.369","parkList":[{"id":10,"parkName":"环球中心停车场","parkNum":"hqzx7841157489","parkAddress":"环球中心","cityId":2,"longitude":"104.072103","latitude":"30.573205"}]},{"id":3,"name":"洛杉矶","longitude":"186.123","latitude":"188.369","parkList":[{"id":9,"parkName":"环球中心停车场","parkNum":"hqzx848971244789","parkAddress":"环球中心","cityId":3,"longitude":"104.072103","latitude":"30.573205"}]},{"id":4,"name":"昆明","longitude":"102.850148","latitude":"24.889077","parkList":[{"id":11,"parkName":"双塔停车场","parkNum":"st4578913","parkAddress":"昆明市万达双塔北塔","cityId":4,"longitude":"102.718396","latitude":"25.013496"},{"id":12,"parkName":"双塔停车场","parkNum":"st4578913","parkAddress":"昆明市万达双塔北塔","cityId":4,"longitude":"102.718396","latitude":"25.013496"},{"id":13,"parkName":"双塔停车场","parkNum":"st4578913","parkAddress":"昆明市万达双塔北塔","cityId":4,"longitude":"102.718396","latitude":"25.013496"},{"id":14,"parkName":"双塔停车场E","parkNum":"ste48541248","parkAddress":"昆明万达双塔","cityId":4,"longitude":"102.71671","latitude":"25.012501"},{"id":15,"parkName":"北塔停车场","parkNum":"bt15644156","parkAddress":"昆明北塔停车场","cityId":4,"longitude":"102.718687","latitude":"25.015029"}]}]
     */

    private long timestamp;
    private int code;
    private String message;
    private String path;
    private String method;
    private List<DataBean> data;

    public long getTimestamp() {
        return timestamp;
    }

    public void setTimestamp(long timestamp) {
        this.timestamp = timestamp;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public String getPath() {
        return path;
    }

    public void setPath(String path) {
        this.path = path;
    }

    public String getMethod() {
        return method;
    }

    public void setMethod(String method) {
        this.method = method;
    }

    public List<DataBean> getData() {
        return data;
    }

    public void setData(List<DataBean> data) {
        this.data = data;
    }

    public static class DataBean implements Serializable{
        /**
         * id : 1
         * name : 成都
         * longitude : 104.072109
         * latitude : 30.663513
         * parkList : [{"id":1,"parkName":"1号停车场","parkNum":"cd0280001","parkAddress":"环球中心第一个地铁口拐进去那儿","cityId":1,"longitude":"104.093781","latitude":"30.621974"},{"id":2,"parkName":"2号停车场","parkNum":"cd0280002","parkAddress":"测试地址","cityId":1,"longitude":"104.103887","latitude":"30.615288"},{"id":3,"parkName":"3号","parkNum":"lsj028001","parkAddress":"测试地址","cityId":1,"longitude":"104.109672","latitude":"30.61549"},{"id":4,"parkName":"春熙路停车场","parkNum":"lsj028002","parkAddress":"春熙路","cityId":1,"longitude":"104.086015","latitude":"30.659566"},{"id":5,"parkName":"桐梓林停车场","parkNum":"bl0280001","parkAddress":"桐梓林","cityId":1,"longitude":"104.073877","latitude":"30.621239"},{"id":6,"parkName":"盐市口停车场","parkNum":"bl0280002","parkAddress":"盐市口","cityId":1,"longitude":"104.073877","latitude":"30.621239"},{"id":8,"parkName":"测试停车场","parkNum":"cs0001","parkAddress":"测试地址","cityId":1,"longitude":"104.071822","latitude":"30.612803"}]
         */

        private int id;
        private String name;
        private String longitude;
        private String latitude;
        private List<ParkListBean> parkList;

        public int getId() {
            return id;
        }

        public void setId(int id) {
            this.id = id;
        }

        public String getName() {
            return name;
        }

        public void setName(String name) {
            this.name = name;
        }

        public String getLongitude() {
            return longitude;
        }

        public void setLongitude(String longitude) {
            this.longitude = longitude;
        }

        public String getLatitude() {
            return latitude;
        }

        public void setLatitude(String latitude) {
            this.latitude = latitude;
        }

        public List<ParkListBean> getParkList() {
            return parkList;
        }

        public void setParkList(List<ParkListBean> parkList) {
            this.parkList = parkList;
        }

        public static class ParkListBean {
            /**
             * id : 1
             * parkName : 1号停车场
             * parkNum : cd0280001
             * parkAddress : 环球中心第一个地铁口拐进去那儿
             * cityId : 1
             * longitude : 104.093781
             * latitude : 30.621974
             */

            private int id;
            private String parkName;
            private String parkNum;
            private String parkAddress;
            private int cityId;
            private String longitude;
            private String latitude;
            private int totalParkCar;

            public int getTotalParkCar() {
                return totalParkCar;
            }

            public void setTotalParkCar(int totalParkCar) {
                this.totalParkCar = totalParkCar;
            }

            public int getId() {
                return id;
            }

            public void setId(int id) {
                this.id = id;
            }

            public String getParkName() {
                return parkName;
            }

            public void setParkName(String parkName) {
                this.parkName = parkName;
            }

            public String getParkNum() {
                return parkNum;
            }

            public void setParkNum(String parkNum) {
                this.parkNum = parkNum;
            }

            public String getParkAddress() {
                return parkAddress;
            }

            public void setParkAddress(String parkAddress) {
                this.parkAddress = parkAddress;
            }

            public int getCityId() {
                return cityId;
            }

            public void setCityId(int cityId) {
                this.cityId = cityId;
            }

            public String getLongitude() {
                return longitude;
            }

            public void setLongitude(String longitude) {
                this.longitude = longitude;
            }

            public String getLatitude() {
                return latitude;
            }

            public void setLatitude(String latitude) {
                this.latitude = latitude;
            }
        }
    }
}
